package com.showcai.service;

import com.showcai.module.Prizes;
import com.showcai.myRunTime.MyRunTimeExcption;

/**
 *抽奖游戏接口
 * Created by Baggio on 2018-12-19.
 */
public interface DrawGameService {
    /**
     * 开始抽奖
     * @param userId
     * @param activityId
     * @throws MyRunTimeExcption
     * @return 奖品
     */
    Prizes actionDraw(Long userId,Long activityId)throws MyRunTimeExcption;

    /**
     *发放奖品
     * @param prizes
     * @param userId
     * @throws MyRunTimeExcption
     */
    void awardsPrizes(Prizes prizes,Long userId)throws MyRunTimeExcption;

}
